<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="csrf-token" content="{{ csrf_token() }}" />
    <meta name ="keywords" content="{{$metakeyword}}">
    <meta name="description" content="{{$metadesp}}">
    <title>个人中心-个人的直播秀</title>
    <link rel="stylesheet" href="/css/layout.css">
    <link rel="stylesheet" href="/css/lay_icon.css">
    <link rel="stylesheet" href="/css/index.css">
    <script src="/js/jquery-3.1.1.js"></script>
    <script src="/js/layer/1.9.3/layer.js"></script>
    <script type="text/javascript" src="/js/move3.js"></script>
</head>
<body>
<div class="header">
    <div class="logo">
        <a href="">MINI秀 <b>bete1.0</b></a>
    </div>
    <div class="l_rt">
        @if($user['islogin'])
            <div class="login_user">
                <div class="user_info">
                    <div class="user_icon">
                        <img src="{{$user['bigpic']}}" alt="">
                    </div>
                    <div class="user_name"><a href="/profile">{{$user['username']}}</a></div>
                </div>
                <a href="" style="font-size: 14px">退出</a>
            </div>
        @else
            <a href="javascript:;" onclick="login()">登录</a>
            <a href="javascript:;" onclick="register()">注册</a>
        @endif
    </div>
</div>
<div class="content" style="clear: both; overflow: auto;">
    <div class="setbar">
        <ul>
            <li><a href="/"><i class="home"></i><span>首页</span></a></li>
            <li><a href="/cate/index"><i class="cate"></i><span>分类</span></a></li>
            <li><a href=""><i class="gc"></i><span>广场</span></a></li>
            <li><a href=""><i class="fa"></i><span>Fans</span></a></li>
            <li><i class="hide"></i><span>隐藏</span></li>
        </ul>
    </div>
    <div class="con" style="width: 95%; height: 900px; float: right;">
        <div class="profile_head">
            <div class="cover_bg">

            </div>
            <div class="profile_user">
                <div class="profile_user_icon">
                    <img src="{{$user['bigpic']}}" alt="">
                </div>
                <div class="profile_user_info">
                    <h3>{{$user['nickname']}}</h3>
                    <p>等级：{{$user['level_common']}}</p>
                    <div class="user_intro">
                        @if($user['interest']) {{$user['interest']}} @else 这家伙很懒，什么都没写 @endif <span class="edit"></span>
                    </div>
                </div>
            </div>
            <div class="nav_item">
                <ul>
                    <li><a href="">个人中心</a></li>
                    <li><a href="">账号安全</a></li>
                    <li><a href="">我的关注</a></li>
                </ul>
            </div>
            <div class="box">
                <div class="box_auth">
                    <form action="save-room-set" method="post">
                    <div class="auth_title">房间设置</div>
                    <div class="form_row">
                        <span>房间ID:</span>
                        {{$room['num']}} <a href="/live/room-live/{{$room['num']}}" class="startOnline">开始直播</a>
                    </div>
                    <div class="form_row">
                        <span>房间标题:</span>
                        <input type="text" name="title" value="{{$room['title']}}" placeholder="请输入本次直播的标题">
                    </div>
                    <div class="form_row">
                        <span>房间公告:</span>
                        <input type="text" name="announce" placeholder="请填写房间公告" value="{{$room['announce']}}">
                    </div>
                    <div class="form_row">
                        <span>直播详情:</span>
                        <textarea placeholder="请输入直播间描述" name="intro">{{$room['intro']}}</textarea>
                    </div>
                    <div class="form_row">
                         <span>房间地址:</span>
                         yunbo.cn/live/room/{{$room['num']}}
                    </div>
                    <div class="form_row">
                         <span>房间设置:</span>
                         <div class="setting">
                              <div class="setting_box" onclick="showWindialg('admin')">房管设置</div>
                              <div class="setting_box" onclick="showWindialg('gag')">用户禁言</div>
                              <div class="setting_box">黑名单</div>
                              <div class="setting_box" onclick="showWindialg('fans')">粉丝牌</div>
                         </div>
                    </div>
                    <div class="form_row">
                        <span></span>
                        {{csrf_field()}}
                        <input type="hidden" value="{{$room['num']}}" name="roomnum">
                        <input type="submit" class="sub">
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="footer"></div>
{{--房管设置--}}
<div class="windowlayout" id="admin" style="display: none;">
    <div class="windowDiag" style="width:700px; height: 400px; margin-top: 300px; position: relative;">
        <div class="w_title">主播管理 <a href="javascript:;" onclick="closeDiag('admin')" class="w_close"></a></div>
        <div class="room_admin_content" style="height: 270px">
            <div class="room_admin_con_title">房管管理</div>
            <div class="room_admin_list">
                <div class="loading spin"></div>
                <ul>
                    {{--<li>sssssssssss <span>下房管</span></li>--}}
                </ul>
            </div>
        </div>
        <div class="w_form_sub" style="">
            <input type="submit" class="confim" onclick="doSubmit()" value="确定">
        </div>
    </div>
</div>
{{--end--}}

{{--用户禁言--}}
<div class="windowlayout" id="gag" style="display: none;">
    <div class="windowDiag" style="width:700px; height: 400px; margin-top: 300px; position: relative;">
        <div class="w_title">主播管理 <a href="javascript:;" onclick="closeDiag('gag')" class="w_close"></a></div>
        <div class="room_admin_content">
            <div class="room_admin_con_title">禁言管理</div>
            <div class="room_admin_list">
                <div class="loading spin"></div>
                <ul>
                    {{--<li>sssssssssss <span>取消</span></li>--}}
                </ul>
            </div>
        </div>
        <div class="w_form_sub" style="">
            <input type="submit" class="confim" onclick="doSubmit()" value="确定">
        </div>
    </div>
</div>
{{--end--}}

{{--黑名单--}}

{{--end--}}

{{--粉丝牌--}}
<div class="windowlayout" id="fans" style="display: none;">
    <div class="windowDiag" style="width:700px; height: 400px; margin-top: 300px; position: relative;">
        <div class="w_title">主播管理 <a href="javascript:;" onclick="closeDiag('fans')" class="w_close"></a></div>
        <div class="room_admin_content" style="height: 280px">
             <div class="room_fans_title">
                  <div class="f_title">粉丝系统</div>
                  <p>粉丝系统为主播和粉丝的沟通搭建了桥梁</p>
             </div>
             <div class="room_fans_cpn">
                  <div class="item">
                       <div class="fans_icon">
                           <div class="tips">
                               <div class="tips_arrow"></div>
                               <p></p>
                           </div>
                       </div>
                       <div class="fans_text">甜心哇
                       </div>
                       <a href="javascript:;" onclick="openfans(this)" data-lev="1" class="fs_status">开通</a>
                       <p>一级粉丝徽章</br><span style="width: 100%; font-size: 11px;">(关注5人以上)</span></p>
                  </div>
                 <div class="item">
                     <div class="fans_icon">
                         <div class="tips">
                             <div class="tips_arrow"></div>
                             <p></p>
                         </div>
                     </div>
                     <div class="fans_text">未开通</div>
                     <a href="javascript:;" onclick="openfans(this)" data-lev="2">开通</a>
                     <p>五级粉丝徽章</br><span style="width: 100%; font-size: 11px;">(关注50人以上)</span></p>
                 </div>
                 <div class="item">
                     <div class="fans_icon">
                         <div class="tips">
                             <div class="tips_arrow"></div>
                             <p></p>
                         </div>
                     </div>
                     <div class="fans_text">未开通</div>
                     <a href="javascript:;" data-lev="3">开通</a>
                     <p>10级粉丝徽章</br><span style="width: 100%; font-size: 11px;">(关注500人以上)</span></p>
                 </div>
                 <div class="item">
                     <div class="fans_icon">
                         <div class="tips">
                             <div class="tips_arrow"></div>
                             <p></p>
                         </div>
                     </div>
                     <div class="fans_text">未开通</div>
                     <a href="javascript:;" data-lev="4">开通</a>
                     <p>15级粉丝徽章</br><span style="width: 100%; font-size: 11px;">(关注1500人以上)</span></p>
                 </div>
                 <div class="item">
                     <div class="fans_icon"></div>
                     <div class="fans_text">未开通</div>
                     <a href="javascript:;" data-lev="5">开通</a>
                     <p>30级粉丝徽章</br><span style="width: 100%; font-size: 11px;">(关注10000人以上)</span></p>
                 </div>
                 <div class="item">
                     <div class="fans_icon">
                         <div class="tips">
                             <div class="tips_arrow"></div>
                             <p></p>
                         </div>
                     </div>
                     <div class="fans_text">未开通</div>
                     <p>40级粉丝徽章</p>
                 </div>
             </div>
        </div>
        <div class="w_form_sub" style="">
            <input type="submit" class="confim" onclick="doSubmit()" value="确定">
        </div>
    </div>
</div>
{{--end--}}
{{-- 粉丝牌名称设置 --}}
<div class="layer_fs">
     <div class="layer_fs_dialg">
          <div class="layer_fs_title">
              设置粉丝牌名称
          </div>
          <div class="layer_fs_input">
              <input type="text" id="fs_input" placeholder="请输入3个字粉丝牌名称">
          </div>
         <div class="w_form_sub" style="text-align: right">
             <input type="submit" class="confim fs_c" onclick="openfanssumit(this)" value="确定">
         </div>
     </div>
</div>
{{-- end --}}
</body>
</html>
<script type="text/javascript" src="/js/profile.js"></script>
<script>
    var message = "{{Session::get('msg')}}";
    $(window).ready(function () {
        if (message) {
            layer.msg(message, {
                time: 3000 //2秒关闭（如果不配置，默认是3秒）
            });
        }
    });
</script>